-- GENERATED SPELL FOR [Gorishi Tunneler] --


function spell0_6555(pUnit, Event) --@Silithid Pox,n/a--
pUnit:FullCastSpellOnTarget(8137,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6555', 2000, 1)
end

function spell1_6555(pUnit, Event) --@Tunneler Acid,n/a--
pUnit:FullCastSpellOnTarget(14120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6555', 30331, 1)
end

function Sorts_6555(pUnit, Event)
local choix_sorts_6555 = math.random(0, 1)
if choix_sorts_6555 == 0 then
pUnit:RegisterEvent('spell0_6555', 1, 1)
end
if choix_sorts_6555 == 1 then
pUnit:RegisterEvent('spell1_6555', 1, 1)
end
end

function mob6555_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6555', math.random(1500, 3000), 1)
end

function mob6555_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6555_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6555_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6555, 1, 'mob6555_Action')
RegisterUnitEvent(6555, 2, 'mob6555_Leave')
RegisterUnitEvent(6555, 3, 'mob6555_Kill')
RegisterUnitEvent(6555, 4, 'mob6555_Die')
